package jsyf.oa.facade.yuce;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

/**
 * Created by Lenovo on 2017/12/11.
 */
@Path("/yuceMain")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface YuceMainFacade {

    @Path("/save")
    Boolean save(String jsonData);

    @Path("/applyAudit")
    Boolean applyAudit(String jsonData);

    @Path("/select")
    JSONObject select(String jsonData);

    @Path("/getModels")
    List<JSONObject> getModels(String companyId,String date,String regionId,String userId);

    @Path("/getCompanyRegionTree")
    List<JSONObject> getCompanyRegionTree(String jsonData);

    @Path("/getTitle")
    JSONObject getTitle(String companyId,String regionId);

    @Path("/getFridayList")
    List<JSONObject> getFridayList(String jsonData);
}
